Filter hook 'pre_user_{$field}'

in WP Core File wp-includes/user.php at line 1849

Description

Filters the value of a user field in the 'db' context. The dynamic portion of the hook name, `$field`, refers to the prefixed user field being filtered, such as 'user_login', 'user_email', 'first_name', etc.

Occurrences

Filename Line Number
wp-includes/user.php 1849

Parameters

Type Name Description
mixed $value Value of the prefixed user field.

PHP Doc

/**
			 * Filters the value of a user field in the 'db' context.
			 *
			 * The dynamic portion of the hook name, `$field`, refers to the prefixed user
			 * field being filtered, such as 'user_login', 'user_email', 'first_name', etc.
			 *
			 * @since 2.9.0
			 *
			 * @param mixed $value Value of the prefixed user field.
			 */